package de.fuberlin.inf.utils;

public class ConsoleOutput {
    public static final int MAX_ITEMS = 10;
    
    public static void show(long[] arr) {
        int l = arr.length - 1;
        System.out.print("[" + arr[0] + ", ");
        int i = 1;
        for (; i < l && i < MAX_ITEMS; i++)
            System.out.print(arr[i] + ", ");
        if (i >= MAX_ITEMS)
            System.out.println("...]");
        else
            System.out.println(arr[l] + "]");
    }
}
